
ranks_ext_document = [
"""\
**红黄牌排行榜** ::

 {
   "_links": {
     "self": {"href": "#self"}
   },
   "id": "UUID",  # ID
   "leagueID": "UUID",  # 联赛编号
   "clubID": "UUID",  # 俱乐部编号
   "userID": "UUID",  # 用户编号
   "red": "Integer",  # 红牌数
   "yellow": "Integer",  # 黄牌数
   "type": "Integer",  # 类型
   "lastUpdated": "DateTime"  # 更新时间
 }

* **red**

 红牌数

* **yellow**

 黄牌数
""",
]

ranks_ext_collection = [
"""\
**红黄牌排行榜** ::

 {
   "_links": {
     "self": {"href": "#self"},
     "next": {"href": "#next"},
     "prev": {"href": "#prev"}
   },
   "_embedded": {
     "ranks": [{
         "_links": {
           "self": {"href": "#self"}
         },
         "id": "UUID",  # ID
         "leagueID": "UUID",  # 联赛编号
         "clubID": "UUID",  # 俱乐部编号
         "userID": "UUID",  # 用户编号
         "red": "Integer",  # 红牌数
         "yellow": "Integer",  # 黄牌数
         "type": "Integer",  # 类型
         "lastUpdated": "DateTime"  # 更新时间
       }, {
         "_links": {
           "self": {"href": "#self"}
         },
         "id": "UUID",  # ID
         "leagueID": "UUID",  # 联赛编号
         "clubID": "UUID",  # 俱乐部编号
         "userID": "UUID",  # 用户编号
         "red": "Integer",  # 红牌数
         "yellow": "Integer",  # 黄牌数
         "type": "Integer",  # 类型
         "lastUpdated": "DateTime"  # 更新时间
       }]
   }
 }
"""
]


EXTENSIONS = {
    'ranks_ext_document': ranks_ext_document,
    'ranks_ext_collection': ranks_ext_collection,
}
